﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SCP_UNA_MVC.Models;
using SCP_UNA_MVC.Libs;

namespace SCP_UNA_MVC.Controllers
{
    public class DefaultController : Controller
    {
        public Passport passportAtual { get; set; }

        protected override void Initialize(System.Web.Routing.RequestContext requestContext)
        {
            base.Initialize(requestContext);
            if (Session["PassPort"] != null)
            {
                passportAtual = (Passport)Session["PassPort"];
                ViewData["passport"] = passportAtual;
            }
        }

    }
}
